home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / programm.ing / mit2mo~1.zoo / src / global.h next >
Encoding:
C/C++ Source or Header  |  1995-08-14  |  597 b   |  36 lines

  1. #ifndef GLOBAL_H
  2. #define GLOBAL_H
  3.  
  4. #include <stdio.h>
  5. #include <string.h>
  6. #include <stdlib.h>
  7.  
  8. #ifdef __STDC__
  9. #  define P_(x)    x
  10. #else
  11. #  define P_(x)    ()
  12. #endif
  13.  
  14. typedef struct hash {
  15.  char *htext;
  16.  char *mapto;
  17.  int htype;
  18.  struct hash *next;
  19. } Hash;
  20.  
  21. struct numstr {
  22.   long num;
  23.   char *str;
  24. };
  25.  
  26. extern FILE *yyin, *yyout;
  27. extern unsigned long line_num;
  28.  
  29. extern void mkhash P_((char *, char *, int));
  30. extern int lookup P_((char *, char *));
  31. extern int yylex P_((void));
  32. extern void yyerror P_((const char *, ...));
  33. extern void init_hash P_((void)), clear_hash P_((void));
  34.  
  35. #endif /* GLOBAL_H */
  36.